package com.zy.cat.service;

import java.util.List;

import com.zy.cat.entity.app.CatAppNotice;
import com.zy.cat.entity.app.CatAppPvMenus;
import com.zy.cat.entity.app.resp.CatAppNoticeResp;
import com.zy.cat.entity.app.resp.CatEventElementResp;

/**
 * 
 * @info 异步处理
 * @author Link
 * @date 2019-10-30 15:24
 */
public interface CatAppService {
	
	/**
	 * 
	 * @info 统计app的PV信息
	 * @author Link
	 * @param imsi 
	 * @param imei 
	 * @param cid 
	 * @param vscode 
	 * @param model 
	 * @param brand 
	 * @param rtype 
	 * @param cmid 
	 * @param mid 
	 * @date 2019-12-09 14:04
	 */
	void insertPV(int rtype, String pid, String brand, String model, String vscode, String cid, String imei, String imsi, String mid, String cmid);

	/**
	 * 
	 * @info 统计app的PV信息、日活、新增、留存
	 * @author Link
	 * @date 2019-12-09 16:09
	 * @param rtype
	 * @param brand
	 * @param model
	 * @param vscode
	 * @param cid
	 * @param imei
	 * @param imsi
	 */
	void insertUV(int rtype, String pid, String brand, String model, String vscode, String cid, String imei, String imsi);

	/**
	 * 
	 * @info 获取pv菜单信息
	 * @author Link
	 * @date 2019-12-11 16:00
	 * @param rtype
	 * @param brand
	 * @param model
	 * @param vscode
	 * @param cid
	 * @param imei
	 * @param imsi
	 * @param mid
	 * @param cmid
	 * @return
	 */
	List<CatAppPvMenus> getAppPVMenus(int rtype, String brand, String model, String vscode, String cid, String imei,
			String imsi, String mid, String cmid);

	/**
	 * 获取通知消息
	 * @author lipengchao
	 * @apiNote 已完成
	 * @date 2019-12-10 10:34:55
	 * @param rtype
	 * @param pid
	 * @return
	 */
	CatAppNoticeResp getMessageInfo(Integer rtype, String pid);

	/**
	 * 事件统计
	 * @author lipengchao
	 * @date 2020-07-30 09:24:08 
	 * @param rtype
	 * @param pid
	 * @param brand
	 * @param model
	 * @param vscode
	 * @param cid
	 * @param imei
	 * @param imsi
	 * @param eventData
	 */
	void setEventCount(Integer rtype,Integer appId, String pid, String brand, String model, String vscode, String cid, String imei,
			String imsi, String eventData);

	/**
	 * 获取事件列表
	 * @author lipengchao
	 * @date 2020-07-31 08:46:38 
	 * @param rtype
	 * @param vscode
	 * @param cid
	 * @param imei
	 * @param imsi
	 * @return
	 */
	List<CatEventElementResp> getEventElementList(Integer rtype, String vscode, String cid, String imei, String imsi);
}
